<?php

function __autoload($file) {
    include_once "core/class/".$file.".php";
}
$db = DB::getInstance();
$page = new Page($db->getSiteData());
$page->menu($db->getAllCategory());

$page->central(
    $db->getPagesData(
        (isset($_GET['cat']) ? $_GET['cat'] : '')
    ),
    $db->getPage(
        (isset($_GET['page']) ? $_GET['page'] : null)
    )
);
$page->initPage();

?>